package serverAdministrator;

import base.Element;
import base.ServerAdministrator;

public class ServerAdministrator2 extends ServerAdministrator
{

	public ServerAdministrator2(int nb_server, int process_power, int latency)
	{
		super(nb_server, process_power, latency);
	}

	@Override
	public void distribute(Element el)
	{
		if (next_srv == null)
		{
			next_srv = server_list.getFirst();
		}
		next_srv.add(el);
		next_srv = server_list.get((server_list.indexOf(next_srv) + 1) % server_list.size());
	}

}
